import { h, Component } from 'preact';
import Empty from '@comps/empty';

export default class Tabs extends Component{
    
    state = {
        currentIndex: 0
    }

    render(){
        const { children } = this.props;
        const lens = children.length;
        return <div className="c-tab-panel">
            {lens > 0 ? children[currentIndex] : <Empty />}
        </div>
    }
}